"""
@author: 周末
--------------------------------------
@project: application
--------------------------------------
@contact:15892766524@163.com
--------------------------------------
@file: conftest.py
--------------------------------------
@time: 2021/11/12 11:47
--------------------------------------
"""
import pytest
from Api.App.MemberApi import MemberApi
from Common.Files import Files

# 用户测试数据
members = Files('members.csv').read('list')


@pytest.fixture(params=members, name='login_data')
def login_member_data(request):
    """用户登录数据"""
    return request.param


@pytest.fixture()
def member():
    """用户实例"""
    return MemberApi()
